<?php

require_once "core-application/class.index.php";
require_once "core-application/core/class.tamplate.php";

if( ! empty($_POST['charId']))
{
	$Index = new index;
	
	$userId = trim($_POST['charId']);

	if($Index -> charlogin($userId) == TRUE)
	{
		header("Location: game.php");
	}

}

?>